@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Orbitron:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background-color: #000;
    color: #fff;
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    height: 100%;
}

.lab-background {
    background: linear-gradient(to bottom, #2e8b57, #20b2aa);
    height: 100%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(46, 139, 87, 0.3);
    padding: 30px;
}

.title {
    text-align: center;
    margin-bottom: 30px;
}

.title h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    color: #2e8b57;
    text-shadow: 0 0 10px rgba(46, 139, 87, 0.7);
    letter-spacing: 3px;
}

.title h2 {
    font-size: 1.2rem;
    color: #20b2aa;
    margin-top: 5px;
}

.alien-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.alien-scientist {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.5));
    transition: transform 0.3s ease;
}

.alien-scientist:hover {
    transform: scale(1.05);
}

.speech-bubble {
    position: relative;
    background: rgba(32, 178, 170, 0.2);
    border-radius: 20px;
    padding: 20px;
    margin-left: 30px;
    max-width: 400px;
    border: 2px solid #2e8b57;
    box-shadow: 0 0 15px rgba(46, 139, 87, 0.3);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 15px;
    border-style: solid;
    border-color: transparent #2e8b57 transparent transparent;
}

.speech-bubble p {
    color: #2e8b57;
    font-size: 1rem;
    line-height: 1.4;
}

.specimen-container {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
}

.specimen {
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.specimen:hover {
    transform: scale(1.1);
}

.specimen svg {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.specimen-base {
    fill: #00b8d4;
    opacity: 0.8;
    filter: url(#glow);
}

.water-entity {
    fill: #64b5f6;
    animation: pulse 3s infinite alternate;
}

.neural-cluster {
    fill: #7c4dff;
    animation: blink 2s infinite;
}

.specimen-detail {
    stroke: #eeffff;
    stroke-width: 2;
    fill: none;
}

.specimen-glow {
    fill: #00ffea;
    filter: blur(5px);
    animation: glow 2s infinite alternate;
}

.specimen span {
    color: #2e8b57;
    font-size: 0.9rem;
    text-align: center;
    font-weight: bold;
}

.character-icon {
    position: absolute;
    bottom: 30px;
    right: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.character-icon img {
    width: 80px;
    height: auto;
    border-radius: 50%;
    border: 2px solid #00f2ff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

.character-icon:hover {
    transform: translateY(-5px);
}

.footer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #2e8b57;
    opacity: 0.7;
}

.battle-button {
    position: absolute;
    bottom: 30px;
    left: 30px;
    padding: 10px 20px;
    background: linear-gradient(to right, #7c4dff, #00b8d4);
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
    transition: all 0.3s ease;
}

.battle-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.8);
}

.battle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 26, 45, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.hidden {
    display: none;
}

.battle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.health-bar {
    width: 300px;
    height: 30px;
    background-color: #333;
    border: 2px solid #00f2ff;
    border-radius: 5px;
    margin: 10px;
    position: relative;
}

.health-fill {
    height: 100%;
    width: 100%;
    background-color: #ff0055;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.player-health {
    background-color: #00ff80;
}

.health-label {
    position: absolute;
    width: 100%;
    text-align: center;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    line-height: 30px;
    text-shadow: 0 0 3px black;
    z-index: 1;
}

.close-battle {
    background-color: #ff3366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
}

.battle-arena {
    height: 400px;
    background: linear-gradient(to bottom, #2e8b57, #20b2aa);
    border: 2px solid #2e8b57;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(46, 139, 87, 0.3) inset;
}

.player {
    width: 30px;
    height: 30px;
    background-color: #00ff80;
    border-radius: 50%;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(0, 255, 128, 0.7);
}

.boss-enemy {
    position: absolute;
    width: 150px;
    height: auto;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 0 15px rgba(255, 0, 85, 0.7));
}

.battle-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.attack-button {
    padding: 10px 30px;
    background: linear-gradient(to right, #ff3366, #ff6b6b);
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.5);
    transition: all 0.2s ease;
}

.attack-button:hover {
    transform: scale(1.05);
}

.battle-message {
    background: rgba(46, 139, 87, 0.2);
    padding: 10px 20px;
    border-radius: 5px;
    color: #2e8b57;
    font-family: 'Space Mono', monospace;
    min-width: 300px;
    text-align: center;
}

.projectile {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #ff3366;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.8);
}

.player-projectile {
    background-color: #00ff80;
    box-shadow: 0 0 10px rgba(0, 255, 128, 0.8);
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

@keyframes glow {
    0% {
        filter: blur(3px);
        opacity: 0.7;
    }
    100% {
        filter: blur(7px);
        opacity: 1;
    }
}

@keyframes blink {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        opacity: 0.9;
    }
    20%, 24%, 55% {
        opacity: 0.5;
    }
}

@keyframes bossHit {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(255, 0, 85, 0.7));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1));
    }
}

@keyframes playerHit {
    0%, 100% {
        background-color: #00ff80;
    }
    50% {
        background-color: #ff3366;
    }
}

@media (max-width: 768px) {
    .title h1 {
        font-size: 2rem;
    }
    
    .alien-container {
        flex-direction: column;
    }
    
    .speech-bubble {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .speech-bubble::before {
        left: 50%;
        top: -20px;
        transform: translateX(-50%);
        border-color: transparent transparent #2e8b57 transparent;
    }
    
    .specimen-container {
        flex-direction: column;
        align-items: center;
    }
    
    .specimen {
        margin-bottom: 30px;
    }
}